//
// Created by jsjxsy on 2022/8/29.
//
#include <iostream>
#include <string>
using namespace std;
//指定模版默认类型
template<typename NameType, typename AgeType=int>
class Person {
 public:
  Person(NameType name, AgeType age) : name(name), age(age) {}
  void show() {
    cout << "name=" << name << ", age" << age << endl;
  }
 public:
  NameType name;
  AgeType age;

};
int main() {
  Person<string> p1("lisi", 10);
  p1.show();
  return 0;
}

